/*
 * Main
 */

package demo;

import javaPlay.GameDesktopEnvironment;
import javaPlay.GameEngine;

public class Demo extends GameDesktopEnvironment {
	
	public Demo() {
		super("Demo", 800, 600);
	}
	
	@Override
	public boolean isPackagedInAJar() {
		return false;
	}
	
	@Override
	public void setUpGameStates() {
		GameEngine.getInstance().addGameState(Global.START_MENU_CONTROLLER_ID, new StartMenuController());
		GameEngine.getInstance().addGameState(Global.SIMPLE_CONTROLLER_ID, new SimpleController());
		GameEngine.getInstance().addGameState(Global.END_SCREEN_CONTROLLER_ID, new EndScreenController());
		GameEngine.getInstance().setStartingGameState(Global.START_MENU_CONTROLLER_ID);
	}
	
	public static void main(String[] args) {
		Demo demo = new Demo();
		demo.open();
	}
}
